package com.kamloo.stg.data.db;


public class Schedule extends DataObject
{
	private int fk_nodeId;
	private int fk_periodId;
	private int hour;
	private int minute;

	public int getFk_nodeId() {
		return fk_nodeId;
	}
	public void setFk_nodeId(int fk_nodeId) {
		this.fk_nodeId = fk_nodeId;
	}

	public int getFk_periodId() {
		return fk_periodId;
	}
	public void setFk_periodId(int fk_periodId) {
		this.fk_periodId = fk_periodId;
	}

	public int getHour() {
		return hour;
	}
	public void setHour(int hour) {
		this.hour = hour;
	}

	public int getMinute() {
		return minute;
	}
	public void setMinute(int minute) {
		this.minute = minute;
	}
	
	public Schedule(int id, int fk_nodeId, int fk_periodId, int hour, int minute)
	{
		super(id);
		this.setFk_nodeId(fk_nodeId);
		this.setFk_periodId(fk_periodId);
		this.setHour(hour);
		this.setMinute(minute);
	}
	
	public String toString() {
		return "id: " + id + 
			   "; fk_nodeId: " + getFk_nodeId() + 
			   "; fk_periodId: " + getFk_periodId() + 
			   "; hour: " + getHour() + 
			   "; minute:" + getMinute();
	}
}
